import type { ThemeType } from '../../../types/interfaces'

// 辅助类型
export type ColorType
  = | 'primary' | 'secondary' | 'accent'
    | 'backgroundBase' | 'backgroundSurface' | 'backgroundOverlay' | 'backgroundPreview' | 'backgroundHighlight' | 'backgroundFixed' | 'backgroundList'
    | 'textBase' | 'textPrimary' | 'textSecondary' | 'textHint' | 'textNeutral'
    | 'hoverPrimary' | 'active' | 'disabled' | 'selectionBg' | 'selectionText' | 'highlightColor' | 'emText' | 'emTextHover'
    | 'successBg' | 'successText' | 'successSecondaryText' | 'successBorder'
    | 'dangerBg' | 'dangerText' | 'dangerSecondaryText' | 'dangerBorder'
    | 'warningBg' | 'warningText' | 'warningSecondaryText' | 'warningBorder'
    | 'infoBg' | 'infoText' | 'infoSecondaryText' | 'infoBorder'
    | 'orangeBg' | 'orangeText' | 'orangeSecondaryText' | 'orangeBorder'
    | 'purpleBg' | 'purpleText' | 'purpleSecondaryText' | 'purpleBorder'
    | 'borderNeutral' | 'borderPrimary' | 'borderSecondary' | 'borderActive'
    | 'shadowSm' | 'shadowMd' | 'shadowLg'
    | 'scrollbarThumbBg' | 'scrollbarThumbBorderColor' | 'scrollbarTrackBg'
    | 'scrollButtonBg' | 'scrollButtonBgHover'
    | 'usernameColor'
    | 'navbarBg' | 'navbarDropdownBg' | 'navbarDropdownHoverBg' | 'navbarActiveText' | 'navbarHoverText'
    | 'tocBg' | 'tocText' | 'tocLiActiveText' | 'tocLiHoverBg' | 'tocLiHoverText'
    | 'adBg' | 'adText' | 'adButtonBg' | 'adButtonText' | 'adCounterText'
    | 'pageBarCurrentPageBg' | 'pageBarCurrentPageText' | 'pageBarOtherPageBg' | 'pageBarOtherPageText' | 'pageBarOtherPageBgHover' | 'pageBarOtherPageTextHover'
    | 'tabActiveText' | 'tabActiveBorder' | 'tabHoverText' | 'tabFocusBg'
    | 'searchHistoryText' | 'searchSuggestionsText'
    | 'searchResultItemBg' | 'searchResultItemBgOfficial' | 'searchResultItemBgPopular' | 'searchResultItemShadow'
    | 'discussionBgOdd' | 'discussionBgEven' | 'discussionShadowOdd' | 'discussionShadowEven' | 'discussionShadowHoverOdd' | 'discussionShadowHoverEven' | 'discussionBgAuthor' | 'discussionShadowAuthor' | 'discussionBgMine' | 'discussionShadowMine' | 'discussionBgOriginalPoster' | 'discussionShadowOriginalPoster'
    | 'selectBg' | 'selectActiveBg' | 'selectText' | 'selectTextActive' | 'selectOptionBg' | 'selectOptionText' | 'selectOptionCheckedBg' | 'selectOptionCheckedText' | 'selectOptionDisabledText'
    | 'searchBg' | 'searchText'
    | 'textText' | 'textCaret' | 'textareaText'
    | 'linkText' | 'linkHover' | 'linkVisited'
    | 'announcementBg' | 'announcementText'
    | 'commentBg' | 'commentText'
    | 'readBg'
    | 'answerBg' | 'answerLoadingBg' | 'answerSwitchMaskBg' | 'answerSwitchMaskText'
    | 'loadingAlertBg' | 'loadingAlertText'
    | 'badgeGreenBg' | 'badgeGreenText' | 'badgeGreenBorderColor' | 'badgeRedBg' | 'badgeRedText' | 'badgeRedBorderColor'
    | 'authorBackground' | 'authorShadow'
    | 'hrBackground'
    | 'codeTextCommon' | 'codeTextPrimary' | 'codeTextSecondary' | 'codeToolbarDivider' | 'codeShadowHover' | 'codeHideBg' | 'codeToolbarBg' | 'codeBg' | 'codeDiffBg'
    | 'markBackground' | 'markText'
    | 'quoteBackground' | 'quoteText'
    | 'tableHeaderBg' | 'tableHeadingText' | 'tableCellBorder' | 'tableRowEvenBg' | 'tableRowOddBg' | 'tableRowHoverBg' | 'tableRowHoverText' | 'tableHighlightBg'
    | 'kbdBg' | 'kbdText'
    | 'footnoteText'
    | 'abbrText'
    | 'ganttBg' | 'ganttText' | 'ganttLineBorder' | 'ganttActiveBg' | 'ganttActiveText' | 'ganttActiveBorder' | 'ganttDoneBg' | 'ganttDoneText' | 'ganttDoneBorder' | 'ganttTaskBg' | 'ganttTaskText' | 'ganttTaskBorder' | 'ganttTodayBorder'
    | 'sequenceLineBorder' | 'sequenceLineText' | 'sequenceActorBg' | 'sequenceActorText' | 'sequenceActorBorder' | 'sequenceMessageBorder0' | 'sequenceMessageBorder1' | 'sequenceMessageText' | 'sequenceNoteBg' | 'sequenceNoteBorder' | 'sequenceNoteText'
    | 'lrBg' | 'lrBorder' | 'lrText' | 'lrLineBg' | 'lrLineText' | 'lrDone' | 'lrActive' | 'labelBg' | 'labelText'
    | 'flowText' | 'flowLineBorder' | 'flowLineText' | 'flowStartEndBg' | 'flowStartEndBorder' | 'flowOpBg' | 'flowOpBorder' | 'flowCondBg' | 'flowCondBorder'
  // ================================== CSDN ==================================
    | 'activityText' | 'activityBg' | 'activityShadow' | 'activityShadowHover' | 'activityShadowActive'
    | 'tagText' | 'tagBackground' | 'tagBackgroundHover' | 'tagBorder' | 'tagShadow' | 'tagShadowHover'
    | 'tagBlueText' | 'tagBlueTextHover' | 'tagBlueBg' | 'tagBlueBgHover'
    | 'copyrightButtonText' | 'copyrightButtonBg' | 'copyrightButtonBgHover' | 'copyrightButtonBorderLeftColor' | 'copyrightButtonShadow' | 'copyrightButtonShadowHover'
    | 'resourceDownloadBtnText'
  // ================================== 知乎 ==================================
    | 'linkCardBg' | 'linkCardText' | 'linkCardShadow'
    | 'followButtonBg' | 'followButtonBgHover' | 'followButtonText' | 'followButtonTextHover'
    | 'columnCardBg'
    | 'buyLinkBg' | 'buyLinkShadow' | 'buyLinkHoverBg'
    | 'toolbarBg' | 'toolbarFilterBg' | 'toolbarShadowBg' | 'toolbarButtonBg' | 'toolbarButtonBgHover' | 'toolbarButtonText' | 'toolbarAnswerFloorBg' | 'toolbarAnswerFloorText' | 'toolbarAnswerTimeText'
    | 'dropdownBg' | 'dropdownText' | 'dropdownBgHover' | 'dropdownBorder'
  // ================================== 油猴 ==================================
    | 'resultBorderPrimary' | 'resultBorderPrimaryHover'
    // ================================== 贴吧平台 ==================================
    | 'tiebarAnswerBg' | 'tiebarCommentBg'

export abstract class ColorService {
  /**
   * 主题的颜色映射
   */
  getColorMap(): Record<ThemeType, Record<ColorType, string>> {
    return {
      // ================================== 浅色主题 ==================================
      light: {
        // 基础色系
        primary: '#1e88e5',
        secondary: '#64b5f6',
        accent: '#ff6b81',

        // 背景
        backgroundBase: '#ffffff',
        backgroundSurface: '#f8f9fa',
        backgroundOverlay: '#f1f1f1',
        backgroundPreview: '#f5f5f5',
        backgroundHighlight: '#fff3cd',
        backgroundFixed: '#f5f5f5',
        backgroundList: '#e8f5e8',

        // 文本（默认文本色、主文本色、次文本色、提示文本色、中性文本色）
        textBase: '#1f1f1f',
        textPrimary: '#1a1a1a',
        textSecondary: '#333333',
        textHint: '#9e9e9e',
        textNeutral: '#4d5156',

        // 交互状态
        hoverPrimary: '#1565c0',
        active: '#0d47a1',
        disabled: '#bdbdbd',
        selectionBg: '#B8E0FF',
        selectionText: '#2A6F97',
        highlightColor: 'rgba(255, 235, 59, 0.7)',
        emText: '#f73131',
        emTextHover: '#ff4d4f',

        // 语义状态
        successBg: '#e6f7ed',
        successText: '#1a6332',
        successSecondaryText: '#6abf87',
        successBorder: '#34c759',
        dangerBg: '#ffebee',
        dangerText: '#c62828',
        dangerSecondaryText: '#f28b82',
        dangerBorder: '#f44336',
        warningBg: '#fff8e1',
        warningText: '#ff8f00',
        warningSecondaryText: '#ffd54f',
        warningBorder: '#ffc107',
        infoBg: '#e3f2fd',
        infoText: '#1565c0',
        infoSecondaryText: '#64b5f6',
        infoBorder: '#2196f3',
        orangeBg: '#fff8e1',
        orangeText: '#ff6e26',
        orangeSecondaryText: '#ffb74d',
        orangeBorder: '#ffc107',
        purpleBg: '#f3e5f5',
        purpleText: '#7b1fa2',
        purpleSecondaryText: '#ba68c8',
        purpleBorder: '#9c27b0',

        // 边框与阴影
        borderNeutral: '#ced4da',
        borderPrimary: '#e0e0e0',
        borderSecondary: '#eeeeee',
        borderActive: '#3b82f6',
        shadowSm: '0 1px 2px rgba(0,0,0,0.05)',
        shadowMd: '0 4px 6px rgba(0,0,0,0.1)',
        shadowLg: '0 10px 15px rgba(0,0,0,0.1)',

        // 滚动条
        scrollbarThumbBg: '#e0e0e0',
        scrollbarThumbBorderColor: 'transparent',
        scrollbarTrackBg: 'transparent',

        // 滚动按钮
        scrollButtonBg: 'rgba(255, 255, 255, 0.8)',
        scrollButtonBgHover: 'rgba(255, 255, 255, 0.9)',

        // 用户名
        usernameColor: '#1d4ed8',

        // 导航栏
        navbarBg: '#f5f5f5',
        navbarDropdownBg: '#f7fafc',
        navbarDropdownHoverBg: '#edf2f7',
        navbarActiveText: '#fc5531',
        navbarHoverText: '#1d4ed8',

        // 目录
        tocBg: '#f9f9f9',
        tocText: '#1a1a1a',
        tocLiActiveText: '#1902c0',
        tocLiHoverBg: '#e7b948',
        tocLiHoverText: '#000000',

        // 页面净化
        adBg: '#f9f9f9',
        adText: '#1a1a1a',
        adButtonBg: '#f0f0f0',
        adButtonText: '#191b1f',
        adCounterText: '#666',

        // 分页条
        pageBarCurrentPageBg: '#4e6ef2',
        pageBarCurrentPageText: '#fff',
        pageBarOtherPageBg: '#f6f6f6',
        pageBarOtherPageText: '#333',
        pageBarOtherPageBgHover: '#0fb264',
        pageBarOtherPageTextHover: '#fff',

        // 标签页
        tabActiveText: '#4f46e5',
        tabActiveBorder: '#6366f1',
        tabHoverText: '#7c3aed',
        tabFocusBg: 'rgba(99, 102, 241, 0.1)',

        // 搜索结果
        searchHistoryText: '#52188c',
        searchSuggestionsText: '#212121',
        searchResultItemBg: 'linear-gradient(135deg, #f5f7ff 0%, #e8ebfa 100%)',
        searchResultItemBgOfficial: 'linear-gradient(135deg, #f9f8f6 0%, #f0eeeb 100%)',
        searchResultItemBgPopular: 'linear-gradient(135deg, #f8e1f4 0%, #f0c8d2 100%)',
        searchResultItemShadow: '0 1px 2px rgba(0,0,0,0.05)',

        // 讨论卡片
        discussionBgOdd: 'linear-gradient(135deg, #f5f7ff 0%, #e8ebfa 100%)',
        discussionBgEven: 'linear-gradient(135deg, #f9f8f6 0%, #f0eeeb 100%)',
        discussionShadowOdd: '0 2px 4px rgba(140, 150, 220, 0.2)',
        discussionShadowEven: '0 2px 4px rgba(120, 100, 80, 0.2)',
        discussionShadowHoverOdd: '0 8px 16px rgba(0, 0, 0, 0.2)',
        discussionShadowHoverEven: '0 8px 16px rgba(0, 0, 0, 0.2)',
        discussionBgAuthor: 'linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%)',
        discussionShadowAuthor: '0 2px 4px rgba(30, 136, 229, 0.2)',
        discussionBgMine: 'linear-gradient(135deg, #40D5E8 0%, #b8e8ee 100%)',
        discussionShadowMine: '0 2px 4px rgba(64, 213, 232, 0.2)',
        discussionBgOriginalPoster: 'linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%)',
        discussionShadowOriginalPoster: '0 2px 4px rgba(255, 152, 0, 0.2)',

        // 下拉框
        selectBg: '#ffffff',
        selectActiveBg: '#e3f2fd',
        selectText: '#4b5563',
        selectTextActive: '#0d47a1',
        selectOptionBg: '#ffffff',
        selectOptionText: '#333333',
        selectOptionCheckedBg: '#f5f5f5',
        selectOptionCheckedText: '#1a56db',
        selectOptionDisabledText: '#9e9e9e',

        // 搜索框
        searchBg: '#ffffff',
        searchText: '#212529',

        // 文本框
        textText: '#212529',
        textCaret: '#24ee98',
        textareaText: '#212529',

        // 链接
        linkText: '#2563EB',
        linkHover: '#4007a2',
        linkVisited: '#7C3AED',

        // 公告
        announcementBg: 'linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%)',
        announcementText: '#1e293b',

        // 评论
        commentBg: '#ffffff',
        commentText: '#212529',

        // 阅读
        readBg: '#e8f5e9',

        // 回答
        answerBg: 'rgba(111, 75, 250, 0.12)',
        answerLoadingBg: '#201452',
        answerSwitchMaskBg: 'linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,.93) 44%,#fff 62%,#fff 100%)',
        answerSwitchMaskText: '#333',

        // 加载弹窗
        loadingAlertBg: '#e8f5e9',
        loadingAlertText: '#333333',

        // 徽章
        badgeGreenBg: '#e8f5e9',
        badgeGreenText: '#2e7d32',
        badgeGreenBorderColor: '#a5d6a7',
        badgeRedBg: '#ffebee',
        badgeRedText: '#c62828',
        badgeRedBorderColor: '#ef5350',

        // 作者
        authorBackground: `
          linear-gradient(
            to right,      /* 从左到右 */
            #FFD700 0%,    /* 金色 */
            #FFEE75 25%,   /* 浅金高光 */
            #FFEE75 75%,   /* 浅金高光 */
            #FFD700 100%   /* 金色 */
          )
        `,
        authorShadow: `
          0 0 0 1px rgba(255, 215, 0, 0.3),
          inset 0 0 10px rgba(255, 215, 0, 0.2),
          0 2px 6px -1px rgba(77, 171, 247, 0.2)
        `,
        // 水平分割线
        hrBackground: 'rgba(200, 200, 200, 0.8)',
        // 代码块
        codeTextCommon: '#5e6687',
        codeTextPrimary: '#333333',
        codeTextSecondary: '#d63384',
        codeToolbarDivider: '#e0e0e0',
        codeShadowHover: '0 8px 16px rgba(156, 39, 176, 0.3)',
        codeHideBg: 'linear-gradient(180deg, rgba(245,245,245,0) 0%, rgba(245,245,245,0.9) 34.13%, #f5f5f5 100%)',
        codeToolbarBg: '#f5f5f5',
        codeBg: '#ffffff',
        codeDiffBg: '#ffffff',
        // 标记
        markBackground: '#fff9c4',
        markText: '#000000',
        // 引用
        quoteBackground: '#f5f5f5',
        quoteText: '#616161',
        // 表格
        tableHeaderBg: '#cde6ff',
        tableHeadingText: '#2c3e50',
        tableCellBorder: '#e4e4e4',
        tableRowOddBg: '#ffffff',
        tableRowEvenBg: '#f9f9f9',
        tableRowHoverBg: '#3d5160',
        tableRowHoverText: '#ffffff',
        tableHighlightBg: '#FFC107',
        // 快捷键
        kbdBg: '#ffffff',
        kbdText: '#1a1a1a',
        // 注脚
        footnoteText: '#1e88e5',
        // 缩写
        abbrText: '#1e88e5',
        // 甘特图
        ganttBg: '#789ddd',
        ganttText: '#333333',
        ganttLineBorder: '#c6c6c6',
        ganttActiveBg: '#5e2f70',
        ganttActiveText: '#e0e0e0',
        ganttActiveBorder: '',
        ganttDoneBg: '#2e7d32',
        ganttDoneText: '#e0e0e0',
        ganttDoneBorder: '',
        ganttTaskBg: '#8c8d39',
        ganttTaskText: '#e0e0e0',
        ganttTaskBorder: '',
        ganttTodayBorder: 'red',
        // 序列图
        sequenceLineBorder: 'hsl(210, 20%, 90%)',
        sequenceLineText: '#5a6a8a',
        sequenceActorBg: '#f8f9ff',
        sequenceActorText: '#2c3e50',
        sequenceActorBorder: '#d1d9ff',
        sequenceMessageBorder0: '#2b8f83',
        sequenceMessageBorder1: '#2b8f83',
        sequenceMessageText: '#d63031',
        sequenceNoteBg: '#fffae6',
        sequenceNoteBorder: '#ffd166',
        sequenceNoteText: '#5a4a42',
        // LR图
        lrBg: '#f8f9ff',
        lrBorder: '#d1d9ff',
        lrText: '#333333',
        lrLineBg: '#2b8f83',
        lrLineText: '#5a6a8a',
        lrDone: '#fffae6',
        lrActive: '#ff8a80',
        labelBg: '#fffae6',
        labelText: '#5a4a42',
        // 流程图
        // 基础
        flowText: '#333333',
        flowLineBorder: 'hsl(210, 20%, 90%)',
        flowLineText: '#777777',
        flowStartEndBg: '#ffffff',
        flowStartEndBorder: '#2b8f83',
        flowOpBg: '#f8f9ff',
        flowOpBorder: '#d1d9ff',
        flowCondBg: '#ffffff',
        flowCondBorder: '#994697',
        // ================================== CSDN ==================================
        // 活动挑战
        activityText: '#ffffff',
        activityBg: 'linear-gradient(135deg, #5094d5 0%, #2a6cb4 100%)',
        activityShadow: '0 4px 6px rgba(42, 108, 180, 0.2)',
        activityShadowHover: '0 6px 12px rgba(42, 108, 180, 0.3)',
        activityShadowActive: '0 2px 4px rgba(42, 108, 180, 0.3)',
        // 标签
        tagText: '#d23669',
        tagBackground: '#ffecf1',
        tagBackgroundHover: '#ffd6e0',
        tagBorder: '1px solid #ffd6e0',
        tagShadow: '0 2px 4px rgba(255, 107, 129, 0.1)',
        tagShadowHover: '0 4px 8px rgba(255, 107, 129, 0.2)',
        // 蓝色标签
        tagBlueText: '#1772f6',
        tagBlueTextHover: '#64b5f6',
        tagBlueBg: '#1c2633',
        tagBlueBgHover: '#15202b',
        // 版权按钮
        copyrightButtonText: '#495057',
        copyrightButtonBg: '#f8f9fa',
        copyrightButtonBgHover: '#e9ecef',
        copyrightButtonBorderLeftColor: '#6c757d',
        copyrightButtonShadow: '0 1px 3px rgba(0,0,0,0.05)',
        copyrightButtonShadowHover: '0 2px 6px rgba(0,0,0,0.1)',
        // 资源下载按钮
        resourceDownloadBtnText: '#ffffff',
        // ================================== 知乎 ==================================
        // 链接卡片
        linkCardBg: 'linear-gradient(135deg, #4dabf7 0%, #e6f4fe 100%)',
        linkCardText: '#1a1a1a',
        linkCardShadow: `
          0 0 0 1px rgba(77, 171, 247, 0.3),
          inset 0 0 12px 1px rgba(255, 255, 255, 0.5),
          0 2px 6px -1px rgba(77, 171, 247, 0.2)
        `,
        // 关注按钮
        followButtonBg: 'linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%)',
        followButtonBgHover: 'linear-gradient(135deg, #5420a3 0%, #7a218f 100%)',
        followButtonText: '#ffffff',
        followButtonTextHover: '#f0e5ff',
        // 专栏卡片
        columnCardBg: '#f8f9fa',
        // 购买链接
        buyLinkBg: 'linear-gradient(135deg, #eeeeee 0%, #f6f6f6 100%)',
        buyLinkShadow: `
          0 3px 10px rgba(0, 0, 0, 0.08),
          0 1px 2px rgba(0, 0, 0, 0.04)
        `,
        buyLinkHoverBg: 'linear-gradient(135deg, #e8e8e8 0%, #f0f5f7 100%)',
        // 回答工具栏
        toolbarBg: '#F5FBFF',
        toolbarFilterBg: '#E8F4FA',
        toolbarShadowBg: 'rgba(0, 0, 0, 0.08)',
        toolbarButtonBg: 'rgba(24, 144, 255, 0.12)',
        toolbarButtonBgHover: 'rgba(24, 144, 255, 0.2)',
        toolbarButtonText: '#1890ff',
        toolbarAnswerFloorBg: 'linear-gradient(135deg, #1890ff, #096dd9)',
        toolbarAnswerFloorText: '#ffffff',
        toolbarAnswerTimeText: '#1a1a1a',
        dropdownBg: '#F5FBFF',
        dropdownText: '#1a1a1a',
        dropdownBgHover: 'rgba(240, 242, 245, 0.9)',
        dropdownBorder: 'rgba(0, 0, 0, 0.06)',
        // ================================== 油猴 ==================================
        // 结果卡片
        resultBorderPrimary: '#d1e0f0',
        resultBorderPrimaryHover: '#7ab8f2',
        // ================================== 贴吧平台 ==================================
        // 回答
        tiebarAnswerBg: 'linear-gradient(135deg, #242424 0%, #3a3636 100%)',
        // 评论
        tiebarCommentBg: 'linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%)',
      },
      // ================================== 深色主题 ==================================
      dark: {
        // 基础色系
        primary: '#90caf9',
        secondary: '#42a5f5',
        accent: '#ff9eaa',

        // 背景
        backgroundBase: '#1e1e1e',
        backgroundSurface: '#2d2d2d',
        backgroundOverlay: '#3a3a3a',
        backgroundPreview: '#2a2a2a',
        backgroundHighlight: '#858575',
        backgroundFixed: '#333e4d',
        backgroundList: '#373333',

        // 文本
        textBase: '#1f1f1f',
        textPrimary: '#e0e0e0',
        textSecondary: '#b0b0b0',
        textHint: '#757575',
        textNeutral: '#4d5156',

        // 交互状态
        hoverPrimary: '#007adb',
        active: '#42a5f5',
        disabled: '#424242',
        selectionBg: '#FF9E5E',
        selectionText: '#2B2D42',
        highlightColor: 'rgba(100, 255, 218, 0.7)',
        emText: '#f73131',
        emTextHover: '#ff4d4f',

        // 语义状态
        successBg: '#1a3a2a',
        successText: '#6ae092',
        successSecondaryText: '#375038',
        successBorder: '#34c759',
        dangerBg: '#3a1a1a',
        dangerText: '#ff6b6b',
        dangerSecondaryText: '#704646',
        dangerBorder: '#ff5252',
        warningBg: '#3a3200',
        warningText: '#ffd166',
        warningSecondaryText: '#4f4835',
        warningBorder: '#ffb347',
        infoBg: '#1a2e3a',
        infoText: '#82d8ff',
        infoSecondaryText: '#364152',
        infoBorder: '#4cc9f0',
        orangeBg: '#fff8e1',
        orangeText: '#ff6e26',
        orangeSecondaryText: '#4f4835',
        orangeBorder: '#ffc107',
        purpleBg: '#2a1a3a',
        purpleText: '#d092e0',
        purpleSecondaryText: '#503750',
        purpleBorder: '#c759d4',

        // 边框与阴影
        borderNeutral: '#424242',
        borderPrimary: '#424242',
        borderSecondary: '#333333',
        borderActive: '#3a519d',
        shadowSm: '0 1px 3px rgba(0,0,0,0.2)',
        shadowMd: '0 4px 6px rgba(0,0,0,0.3)',
        shadowLg: '0 10px 15px rgba(0,0,0,0.3)',

        // 滚动条
        scrollbarThumbBg: '#424242',
        scrollbarThumbBorderColor: 'transparent',
        scrollbarTrackBg: 'transparent',

        // 滚动按钮
        scrollButtonBg: '#424242',
        scrollButtonBgHover: '#616161',

        // 用户名
        usernameColor: '#60a5fa',

        // 导航栏
        navbarBg: '#1a202c',
        navbarDropdownBg: '#2d3748',
        navbarDropdownHoverBg: '#4a5568',
        navbarActiveText: '#fc5531',
        navbarHoverText: '#7095ff',

        // 目录
        tocBg: '#2d2d2d',
        tocText: '#e0e0e0',
        tocLiActiveText: '#88969f',
        tocLiHoverBg: '#a4c99e',
        tocLiHoverText: '#000000',

        // 页面净化
        adBg: '#2d2d2d',
        adText: '#e0e0e0',
        adButtonBg: '#88969f',
        adButtonText: '#ffffff',
        adCounterText: '#a4c99e',

        // 分页条
        pageBarCurrentPageBg: '#4e6ef2',
        pageBarCurrentPageText: '#fff',
        pageBarOtherPageBg: '#f6f6f6',
        pageBarOtherPageText: '#333',
        pageBarOtherPageBgHover: '#0fb264',
        pageBarOtherPageTextHover: '#fff',

        // 标签页
        tabActiveText: '#a78bfa',
        tabActiveBorder: '#8b5cf6',
        tabHoverText: '#c4b5fd',
        tabFocusBg: 'rgba(167, 139, 250, 0.15)',

        // 搜索结果
        searchHistoryText: '#52188c',
        searchSuggestionsText: '#212121',
        searchResultItemBg: 'linear-gradient(135deg, #242424 0%, #3a3636 100%)',
        searchResultItemBgOfficial: 'linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%)',
        searchResultItemBgPopular: 'linear-gradient(135deg, #3f263b 0%, #6d3a3f 100%)',
        searchResultItemShadow: '0 1px 3px rgba(0,0,0,0.2)',

        // 讨论卡片
        discussionBgOdd: 'linear-gradient(135deg, #242424 0%, #3a3636 100%)',
        discussionBgEven: 'linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%)',
        discussionShadowOdd: '0 2px 4px rgba(20, 15, 15, 0.3)',
        discussionShadowEven: '0 2px 4px rgba(10, 20, 30, 0.3)',
        discussionShadowHoverOdd: '0 8px 16px rgba(0, 0, 0, 0.3)',
        discussionShadowHoverEven: '0 8px 16px rgba(0, 0, 0, 0.3)',
        discussionBgAuthor: 'linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%)',
        discussionShadowAuthor: '0 2px 4px rgba(59, 130, 246, 0.3)',
        discussionBgMine: 'linear-gradient(135deg, #006064 0%, #00838F 100%)',
        discussionShadowMine: '0 2px 4px rgba(0, 150, 136, 0.3)',
        discussionBgOriginalPoster: 'linear-gradient(135deg, #5D4037 0%, #3E2723 100%)',
        discussionShadowOriginalPoster: '0 2px 4px rgba(255, 152, 0, 0.3)',

        // 下拉框
        selectBg: '#333',
        selectActiveBg: '#273754',
        selectText: '#90cdf4',
        selectTextActive: '#ebf8ff',
        selectOptionBg: '#2d3748',
        selectOptionText: '#e2e8f0',
        selectOptionCheckedBg: '#4a5568',
        selectOptionCheckedText: '#93c5fd',
        selectOptionDisabledText: '#9e9e9e',

        // 搜索框
        searchBg: '#2d3036',
        searchText: '#f8f9fa',

        // 文本框
        textText: '#c05c17',
        textCaret: '#24ee98',
        textareaText: '#c05c17',

        // 链接
        linkText: '#2563EB',
        linkHover: '#A78BFA',
        linkVisited: '#7C3AED',

        // 公告
        announcementBg: 'linear-gradient(135deg, #1e293b 0%, #334155 100%)',
        announcementText: '#f8fafc',

        // 评论
        commentBg: '#212529',
        commentText: '#f8f9fa',

        // 阅读
        readBg: '#4f5d6b',

        // 回答
        answerBg: 'rgba(111, 75, 250, 0.5)',
        answerLoadingBg: '#39cebf',
        answerSwitchMaskBg: 'linear-gradient(180deg, rgba(245,252,245,0) 0%, rgba(235,248,235,0.6) 44%, #e8f4e8 62%, #e0f0e0 100%)',
        answerSwitchMaskText: '#930eaa',

        // 加载弹窗
        loadingAlertBg: 'rgba(0,0,0,0.7)',
        loadingAlertText: '#b0b0b0',

        // 徽章
        badgeGreenBg: '#1b5e20',
        badgeGreenText: '#a5d6a7',
        badgeGreenBorderColor: '#2e7d32',
        badgeRedBg: '#ffebee',
        badgeRedText: '#c62828',
        badgeRedBorderColor: '#ef5350',

        // 作者
        authorBackground: `
          linear-gradient(
            to right,      /* 从左到右 */
            #D4AF37 0%,    /* 暗金色 */
            #B8860B 25%,   /* 古铜金 */
            #B8860B 75%,   /* 保持中间色调 */
            #D4AF37 100%   /* 暗金色 */
          )
        `,
        authorShadow: `
          0 0 8px rgba(180, 140, 20, 0.5),
          inset 0 1px 0 rgba(255, 215, 0, 0.2)
        `,
        // 水平分割线
        hrBackground: 'rgba(100, 100, 100, 0.6)',
        // 代码块
        codeTextCommon: '#5e6687',
        codeTextPrimary: 'hsl(60, 15%, 72%)',
        codeTextSecondary: '#ff79c6',
        codeToolbarDivider: '#3c3c3c',
        codeShadowHover: '0 8px 16px rgba(255, 255, 255, 0.15)',
        codeHideBg: 'linear-gradient(180deg, rgba(26,26,26,0) 0%, rgba(26,26,26,0.84) 49.52%, #1a1a1a 100%)',
        codeToolbarBg: '#2d2d2d',
        codeBg: '#a3b6bc',
        codeDiffBg: '#ffffff',
        // 标记
        markBackground: '#ffeb3b40',
        markText: '#e0e0e0',
        // 引用
        quoteBackground: '#2d2d2d',
        quoteText: '#b0b0b0',
        // 表格
        tableHeaderBg: '#4a2a3a',
        tableHeadingText: '#b39ddb',
        tableCellBorder: '#333333',
        tableRowOddBg: '#252525',
        tableRowEvenBg: '#2d2d2d',
        tableRowHoverBg: '#3d5160',
        tableRowHoverText: 'rgba(255, 255, 255, 0.9)',
        tableHighlightBg: '#ba9752',
        // 快捷键
        kbdBg: '#374151',
        kbdText: '#e0e0e0',
        // 注脚
        footnoteText: '#90caf9',
        // 缩写
        abbrText: '#90caf9',
        // 甘特图
        ganttBg: '#545454',
        ganttText: '#e0e0e0',
        ganttLineBorder: '#545454',
        ganttActiveBg: '#5e2f70',
        ganttActiveText: '#e0e0e0',
        ganttActiveBorder: '',
        ganttDoneBg: '#2e7d32',
        ganttDoneText: '#e0e0e0',
        ganttDoneBorder: '',
        ganttTaskBg: '#8c8d39',
        ganttTaskText: '#e0e0e0',
        ganttTaskBorder: '',
        ganttTodayBorder: 'red',
        // 序列图
        sequenceLineBorder: 'hsl(0, 0%, 35%)',
        sequenceLineText: '#b0b0b0',
        sequenceActorBg: '#424242',
        sequenceActorText: '#f5f5f5',
        sequenceActorBorder: '#616161',
        sequenceMessageBorder0: '#9c27b0',
        sequenceMessageBorder1: '#9c27b0',
        sequenceMessageText: '#ff8a80',
        sequenceNoteBg: '#5d4037',
        sequenceNoteBorder: '#757575',
        sequenceNoteText: '#ffcc80',
        // LR图
        lrBg: '#424242',
        lrBorder: '#616161',
        lrText: '#f5f5f5',
        lrLineBg: '#9c27b0',
        lrLineText: '#b0b0b0',
        lrDone: '#5d4037',
        lrActive: '#ff8a80',
        labelBg: '#5d4037',
        labelText: '#ffcc80',
        // 流程图
        flowText: '#f5f5f5',
        flowLineBorder: '#545454',
        flowLineText: '#f5f5f5',
        flowStartEndBg: '#424242',
        flowStartEndBorder: '#2b8f83',
        flowOpBg: '#424242',
        flowOpBorder: '#666666',
        flowCondBg: '#424242',
        flowCondBorder: '#9c27b0',
        // ================================== CSDN ==================================
        // 活动挑战
        activityText: '#e0e0e0',
        activityBg: 'linear-gradient(135deg, #593d3e 0%, #000000 100%)',
        activityShadow: `
          0 1px 1px rgba(255, 255, 255, 0.1),
          0 3px 5px rgba(0, 0, 0, 0.5),
          inset 0 -1px 1px rgba(0, 0, 0, 0.4)
        `,
        activityShadowHover: `
          0 2px 2px rgba(255, 255, 255, 0.15),
          0 5px 8px rgba(0, 0, 0, 0.6),
          inset 0 -1px 2px rgba(0, 0, 0, 0.5),
          0 0 0 1px rgba(100, 100, 100, 0.3)
        `,
        activityShadowActive: `
          0 0 1px rgba(255, 255, 255, 0.1),
          0 1px 3px rgba(0, 0, 0, 0.6),
          inset 0 1px 3px rgba(0, 0, 0, 0.4)
        `,
        // 标签
        tagText: '#ff9eaa',
        tagBackground: 'rgba(255, 107, 129, 0.15)',
        tagBackgroundHover: 'rgba(255, 107, 129, 0.25)',
        tagBorder: '1px solid rgba(255, 107, 129, 0.3)',
        tagShadow: '',
        tagShadowHover: '0 0 0 2px rgba(255, 107, 129, 0.4)',
        // 蓝色标签
        tagBlueText: '#1772f6',
        tagBlueTextHover: '#64b5f6',
        tagBlueBg: '#1c2633',
        tagBlueBgHover: '#15202b',
        // 版权按钮
        copyrightButtonText: '#e0e0e0',
        copyrightButtonBg: '#1e1e1e',
        copyrightButtonBgHover: '#2d2d2d',
        copyrightButtonBorderLeftColor: '#495057',
        copyrightButtonShadow: '0 1px 3px rgba(0,0,0,0.2)',
        copyrightButtonShadowHover: '0 2px 6px rgba(0,0,0,0.3)',
        // 资源下载按钮
        resourceDownloadBtnText: '#622d65',
        // ================================== 知乎 ==================================
        // 链接卡片
        linkCardBg: 'linear-gradient(135deg, #684688 0%, #1a1b26 100%)',
        linkCardText: '#e0e0e0',
        linkCardShadow: `
          0 0 0 1px rgba(104, 70, 136, 0.7),
          inset 0 0 8px 1px rgba(224, 224, 224, 0.1)
        `,
        // 关注按钮
        followButtonBg: 'linear-gradient(135deg, #3f1783 0%, #5f1972 100%)',
        followButtonBgHover: 'linear-gradient(135deg, #5420a3 0%, #7a218f 100%)',
        followButtonText: '#e0e0e0',
        followButtonTextHover: '#f0e5ff',
        // 专栏卡片
        columnCardBg: '#2d3748',
        // 购买链接
        buyLinkBg: 'linear-gradient(135deg, #2a2e35 0%, #1e2229 100%)',
        buyLinkShadow: `
          0 6px 16px rgba(0, 0, 0, 0.4),
          0 0 0 1px rgba(108, 184, 255, 0.3) inset
        `,
        buyLinkHoverBg: 'linear-gradient(135deg, #313842 0%, #252a32 100%)',
        // 问答工具栏
        toolbarBg: 'rgb(43, 43, 56)',
        toolbarFilterBg: '#323244',
        toolbarShadowBg: 'rgba(0, 0, 0, 0.3)',
        toolbarButtonBg: 'rgba(64, 158, 255, 0.16)',
        toolbarButtonBgHover: 'rgba(64, 158, 255, 0.24)',
        toolbarButtonText: '#a0d0ff',
        toolbarAnswerFloorBg: 'linear-gradient(135deg, #409eff, #1a6fcf)',
        toolbarAnswerFloorText: '#f0f0f0',
        toolbarAnswerTimeText: '#e0e0e0',
        dropdownBg: '#1e293b',
        dropdownText: '#e2e8f0',
        dropdownBgHover: 'rgba(51, 65, 85, 0.9)',
        dropdownBorder: 'rgba(255, 255, 255, 0.06)',
        // ================================== 油猴 ==================================
        // 结果卡片
        resultBorderPrimary: '#364152',
        resultBorderPrimaryHover: '#4e9dec',
        // ================================== 贴吧平台 ==================================
        // 回答
        tiebarAnswerBg: 'linear-gradient(135deg, #242424 0%, #3a3636 100%)',
        // 评论
        tiebarCommentBg: 'linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%)',
      },
      // ================================== 粉色主题 ==================================
      pink: {
        // 基础色系
        primary: '#ff6b81',
        secondary: '#ff8e53',
        accent: '#d23669',

        // 背景
        backgroundBase: '#fff5f7',
        backgroundSurface: '#ffecef',
        backgroundOverlay: '#ffd6e0',
        backgroundPreview: '#f5f5f5',
        backgroundHighlight: '#fff3cd',
        backgroundFixed: '#f8e1e6',
        backgroundList: '#e8f5e8',

        // 文本
        textBase: '#1f1f1f',
        textPrimary: '#d23669',
        textSecondary: '#4a4a4a',
        textHint: '#999999',
        textNeutral: '#4d5156',

        // 交互状态
        hoverPrimary: '#d23669',
        active: '#ff4757',
        disabled: '#ffb6c1',
        selectionBg: '#FFB7D5',
        selectionText: '#A62655',
        highlightColor: 'rgba(255, 105, 180, 0.7)',
        emText: '#f73131',
        emTextHover: '#ff4d4f',

        // 语义状态
        successBg: '#e6f7ed',
        successText: '#1a6332',
        successSecondaryText: '#6abf87',
        successBorder: '#34c759',
        dangerBg: '#ffebee',
        dangerText: '#c62828',
        dangerSecondaryText: '#f28b82',
        dangerBorder: '#f44336',
        warningBg: '#fff8e1',
        warningText: '#ff8f00',
        warningSecondaryText: '#ffd54f',
        warningBorder: '#ffc107',
        infoBg: '#e3f2fd',
        infoText: '#1565c0',
        infoSecondaryText: '#64b5f6',
        infoBorder: '#2196f3',
        orangeBg: '#fff8e1',
        orangeText: '#ff6e26',
        orangeSecondaryText: '#ffb74d',
        orangeBorder: '#ffc107',
        purpleBg: '#f3e5f5',
        purpleText: '#7b1fa2',
        purpleSecondaryText: '#ba68c8',
        purpleBorder: '#9c27b0',

        // 边框与阴影
        borderNeutral: '#ced4da',
        borderPrimary: '#ffb6c1',
        borderSecondary: '#ffd6e0',
        borderActive: '#3b82f6',
        shadowSm: '0 2px 4px rgba(255,107,129,0.1)',
        shadowMd: '0 6px 12px rgba(255,107,129,0.2)',
        shadowLg: '0 15px 25px rgba(255,107,129,0.2)',

        // 滚动条
        scrollbarThumbBg: '#ffb6c1',
        scrollbarThumbBorderColor: 'transparent',
        scrollbarTrackBg: 'transparent',

        // 滚动按钮
        scrollButtonBg: 'rgba(192, 132, 151, 0.7)',
        scrollButtonBgHover: 'rgba(210, 150, 169, 0.9)',

        // 用户名
        usernameColor: '#c026d3',

        // 导航栏
        navbarBg: '#fff0f6',
        navbarDropdownBg: '#ffd6e7',
        navbarDropdownHoverBg: '#f8bbd0',
        navbarActiveText: '#fc5531',
        navbarHoverText: '#1d4ed8',

        // 目录
        tocBg: '#f9f9f9',
        tocText: '#1a1a1a',
        tocLiActiveText: '#1902c0',
        tocLiHoverBg: '#e7b948',
        tocLiHoverText: '#000000',

        // 页面净化
        adBg: '#f9f9f9',
        adText: '#1a1a1a',
        adButtonBg: '#f0f0f0',
        adButtonText: '#191b1f',
        adCounterText: '#666',

        // 分页条
        pageBarCurrentPageBg: '#4e6ef2',
        pageBarCurrentPageText: '#fff',
        pageBarOtherPageBg: '#f6f6f6',
        pageBarOtherPageText: '#333',
        pageBarOtherPageBgHover: '#0fb264',
        pageBarOtherPageTextHover: '#fff',

        // 标签页
        tabActiveText: '#ec4899',
        tabActiveBorder: '#f472b6',
        tabHoverText: '#ec4899',
        tabFocusBg: 'rgba(236, 72, 153, 0.1)',

        // 搜索相关
        searchHistoryText: '#52188c',
        searchSuggestionsText: '#212121',
        searchResultItemBg: 'linear-gradient(135deg, #f5f7ff 0%, #e8ebfa 100%)',
        searchResultItemBgOfficial: 'linear-gradient(135deg, #f9f8f6 0%, #f0eeeb 100%)',
        searchResultItemBgPopular: 'linear-gradient(135deg, #f8e1f4 0%, #f0c8d2 100%)',
        searchResultItemShadow: '0 2px 4px rgba(255,107,129,0.1)',

        // 讨论卡片
        discussionBgOdd: 'linear-gradient(135deg, #f5f7ff 0%, #e8ebfa 100%)',
        discussionBgEven: 'linear-gradient(135deg, #f9f8f6 0%, #f0eeeb 100%)',
        discussionShadowOdd: '0 2px 4px rgba(140, 150, 220, 0.2)',
        discussionShadowEven: '0 2px 4px rgba(120, 100, 80, 0.2)',
        discussionShadowHoverOdd: '0 8px 16px rgba(255, 20, 147, 0.2)',
        discussionShadowHoverEven: '0 8px 16px rgba(255, 105, 180, 0.2)',
        discussionBgAuthor: 'linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%)',
        discussionShadowAuthor: '0 2px 4px rgba(30, 136, 229, 0.2)',
        discussionBgMine: 'linear-gradient(135deg, #40D5E8 0%, #b8e8ee 100%)',
        discussionShadowMine: '0 2px 4px rgba(64, 213, 232, 0.2)',
        discussionBgOriginalPoster: 'linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%)',
        discussionShadowOriginalPoster: '0 2px 4px rgba(255, 152, 0, 0.2)',

        // 下拉框
        selectBg: '#fff0f5',
        selectActiveBg: '#ffd6e7',
        selectText: '#4b5563',
        selectTextActive: '#9c1a5b',
        selectOptionBg: '#fff0f6',
        selectOptionText: '#333333',
        selectOptionCheckedBg: '#ffd6e7',
        selectOptionCheckedText: '#9d174d',
        selectOptionDisabledText: '#9e9e9e',

        // 搜索框
        searchBg: '#fff0f5',
        searchText: '#495057',

        // 文本框
        textText: '#495057',
        textCaret: '#24ee98',
        textareaText: '#343a40',

        // 链接
        linkText: '#2563EB',
        linkHover: '#4007a2',
        linkVisited: '#7C3AED',

        // 公告
        announcementBg: 'linear-gradient(135deg, #fff0f3 0%, #ffd6e0 100%)',
        announcementText: '#831843',

        // 评论
        commentBg: '#fff0f6',
        commentText: '#a61e4d',

        // 阅读
        readBg: '#e8f5e9',

        // 回答
        answerBg: 'rgba(111, 75, 250, 0.12)',
        answerLoadingBg: '#201452',
        answerSwitchMaskBg: 'linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,.93) 44%,#fff 62%,#fff 100%)',
        answerSwitchMaskText: '#333',

        // 加载弹窗
        loadingAlertBg: '#e8f5e9',
        loadingAlertText: '#333333',
        // 徽章
        badgeGreenBg: '#e8f5e9',
        badgeGreenText: '#2e7d32',
        badgeGreenBorderColor: '#a5d6a7',
        badgeRedBg: '#ffebee',
        badgeRedText: '#c62828',
        badgeRedBorderColor: '#ef5350',

        // 作者
        authorBackground: `
          linear-gradient(
            to right,      /* 从左到右 */
            #FFD700 0%,    /* 金色 */
            #FFEE75 25%,   /* 浅金高光 */
            #FFEE75 75%,   /* 浅金高光 */
            #FFD700 100%   /* 金色 */
          )
        `,
        authorShadow: `
          0 0 0 1px rgba(255, 215, 0, 0.3),
          inset 0 0 10px rgba(255, 215, 0, 0.2)
        `,
        // 水平分割线
        hrBackground: 'rgba(255, 182, 193, 0.7)',
        // 代码块
        codeTextCommon: '#5e6687',
        codeTextPrimary: '#d23669',
        codeTextSecondary: '#9c1a5b',
        codeToolbarDivider: '#e0e0e0',
        codeShadowHover: '0 8px 16px rgba(255, 107, 129, 0.3)',
        codeHideBg: 'linear-gradient(180deg, rgba(255,245,248,0) 0%, rgba(255,245,248,0.9) 34.13%, #fff5f8 100%)',
        codeToolbarBg: '#fff0f5',
        codeBg: '#fff5f7',
        codeDiffBg: '#ffffff',
        // 标记
        markBackground: '#ffd3d6',
        markText: '#d23669',
        // 引用
        quoteBackground: '#ffecef',
        quoteText: '#666666',
        // 表格
        tableHeaderBg: '#ff85a2',
        tableHeadingText: '#9c1a5b',
        tableCellBorder: '#ffe5e9',
        tableRowOddBg: '#fff9fa',
        tableRowEvenBg: '#ffecef',
        tableRowHoverBg: '#3d5160',
        tableRowHoverText: '#ffffff',
        tableHighlightBg: '#FFC107',
        // 快捷键
        kbdBg: '#fce7f3',
        kbdText: '#d23669',
        // 注脚
        footnoteText: '#ff6b81',
        // 缩写
        abbrText: '#ff6b81',
        // 甘特图
        ganttBg: '#e6d0d4',
        ganttText: '#d23669',
        ganttLineBorder: '#e6d0d4',
        ganttActiveBg: '#5e2f70',
        ganttActiveText: '#e0e0e0',
        ganttActiveBorder: '',
        ganttDoneBg: '#2e7d32',
        ganttDoneText: '#e0e0e0',
        ganttDoneBorder: '',
        ganttTaskBg: '#8c8d39',
        ganttTaskText: '#e0e0e0',
        ganttTaskBorder: '',
        ganttTodayBorder: 'red',
        // 序列图
        sequenceLineBorder: 'hsl(330, 80%, 90%)',
        sequenceLineText: '#fff0f5',
        sequenceActorBg: '#fff5f7',
        sequenceActorText: '#c2185b',
        sequenceActorBorder: '#ffb6c1',
        sequenceMessageBorder0: '#e91e63',
        sequenceMessageBorder1: '#e91e63',
        sequenceMessageText: '#ad1457',
        sequenceNoteBg: '#fff8e1',
        sequenceNoteBorder: '#ff9eb5',
        sequenceNoteText: '#880e4f',
        // LR图
        lrBg: '#fff5f7',
        lrBorder: '#ffb6c1',
        lrText: '#c2185b',
        lrLineBg: 'hsl(330, 80%, 90%)',
        lrLineText: '#d23669',
        lrDone: '#fff8e1',
        lrActive: '#ff4757',
        labelBg: '#fff8e1',
        labelText: '#880e4f',
        // 流程图
        flowText: '#d23669',
        flowLineBorder: 'hsl(330, 80%, 90%)',
        flowLineText: '#d23669',
        flowStartEndBg: '#fff5f7',
        flowStartEndBorder: '#2b8f83',
        flowOpBg: '#fff5f7',
        flowOpBorder: '#ffb6c1',
        flowCondBg: '#fff5f7',
        flowCondBorder: '#9c27b0',
        // ================================== CSDN ==================================
        // 活动挑战
        activityText: '#ffffff',
        activityBg: 'linear-gradient(135deg, #ff6b81 0%, #d23669 100%)',
        activityShadow: '0 4px 6px rgba(255, 107, 129, 0.3)',
        activityShadowHover: '0 6px 12px rgba(255, 107, 129, 0.4)',
        activityShadowActive: '0 2px 4px rgba(255, 107, 129, 0.3)',
        // 标签
        tagText: '#ffffff',
        tagBackground: 'linear-gradient(135deg, #ff6b81, #ff8e53)',
        tagBackgroundHover: 'linear-gradient(135deg, #ff4757, #ff6b81)',
        tagBorder: 'none',
        tagShadow: `
          0 2px 4px rgba(255, 107, 129, 0.3),
          inset 0 1px 0 rgba(255,255,255,0.2)`,
        tagShadowHover: `
          0 4px 8px rgba(255, 107, 129, 0.4),
          inset 0 1px 0 rgba(255,255,255,0.2)`,
        // 蓝色标签
        tagBlueText: '#1772f6',
        tagBlueTextHover: '#64b5f6',
        tagBlueBg: '#1c2633',
        tagBlueBgHover: '#15202b',
        // 版权按钮
        copyrightButtonText: '#d23669',
        copyrightButtonBg: 'linear-gradient(to right, #fff5f7, #ffecef)',
        copyrightButtonBgHover: 'linear-gradient(to right, #ffecef, #ffd6e0)',
        copyrightButtonBorderLeftColor: '#ff6b81',
        copyrightButtonShadow: '0 2px 6px rgba(255,107,129,0.1)',
        copyrightButtonShadowHover: '0 4px 10px rgba(255,107,129,0.2)',
        // 资源下载按钮
        resourceDownloadBtnText: '#ffffff',
        // ================================== 知乎 ==================================
        // 链接卡片
        linkCardBg: 'linear-gradient(135deg, rgba(255, 105, 180, 0.8) 0%, rgba(255, 239, 243, 0.4) 100%)',
        linkCardText: '#d23669',
        linkCardShadow: `
          0 0 0 1px rgba(255, 105, 180, 0.3),
          inset 0 0 24px 0 rgba(255, 255, 255, 0.3)
        `,
        // 关注按钮
        followButtonBg: 'linear-gradient(135deg, #ff7eb3 0%, #ff4d94 100%)',
        followButtonBgHover: 'linear-gradient(135deg, #5420a3 0%, #7a218f 100%)',
        followButtonText: '#ffffff',
        followButtonTextHover: '#f0e5ff',
        // 专栏卡片
        columnCardBg: '#fff0f5',
        // 购买链接
        buyLinkBg: 'linear-gradient(135deg, #fff0f5 0%, #ffe6ee 100%)',
        buyLinkShadow: `
          0 4px 14px rgba(255, 20, 147, 0.2),
          0 1px 3px rgba(255, 105, 180, 0.15)
        `,
        buyLinkHoverBg: 'linear-gradient(135deg, #ffe6ee 0%, #ffd6e4 100%)',
        // 问答工具栏
        toolbarBg: '#fce4ec',
        toolbarFilterBg: '#F8E1EB',
        toolbarShadowBg: 'rgba(255, 182, 193, 0.2)',
        toolbarButtonBg: 'rgba(255, 182, 193, 0.3)',
        toolbarButtonBgHover: 'rgba(255, 182, 193, 0.4)',
        toolbarButtonText: '#d23669',
        toolbarAnswerFloorBg: 'linear-gradient(135deg, #ff9eb5, #ff6b8b)',
        toolbarAnswerFloorText: '#ffffff',
        toolbarAnswerTimeText: '#5a2d41',
        dropdownBg: '#fce4ec',
        dropdownText: '#6b2d5a',
        dropdownBgHover: 'rgba(255, 200, 221, 0.6)',
        dropdownBorder: 'rgba(255, 105, 180, 0.2)',
        // ================================== 油猴 ==================================
        // 结果卡片
        resultBorderPrimary: '#fad2e6',
        resultBorderPrimaryHover: '#e83f8f',
        // ================================== 贴吧平台 ==================================
        // 回答
        tiebarAnswerBg: 'linear-gradient(135deg, #242424 0%, #3a3636 100%)',
        // 评论
        tiebarCommentBg: 'linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%)',
      },
    }
  }

  /**
   * 颜值值获取
   * @param theme 主题类型
   * @param colorType 颜色类型
   * @private
   */
  getColorValue(theme: ThemeType, colorType: ColorType): string {
    return this.getColorMap()?.[theme][colorType] || ''
  }

  /**
   * 标准化 CSS 内容格式
   */
  normalizeCssIndentation(css: string): string {
    return css
      .split('\n')
      .filter(line => !/^\s*$/.test(line)) // 仅过滤掉全为空格的空行
      .join('\n')
      .trim()
  }
}
